<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
<head>
    <title></title>
</head>
<body>

<jsp:include page="header.jsp" flush="true"/>

<h3><spring:message code="label.loginMessage" /> </h3>

<c:if test="${not empty error}">
    <div class="errorblock">
        Your login attempt was not successful, try again.<br /> Caused :
            ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
    </div>
</c:if>

<form name='f' action="<c:url value='j_spring_security_check' />"
      method='POST'>


    <table>
        <tr>
            <td><spring:message code="label.login" /></td>
            <td><input type='text' name='j_username' value=''>
            </td>
        </tr>
        <tr>
            <td><spring:message code="label.password" /></td>
            <td><input type='password' name='j_password' />
            </td>
        </tr>
        <tr>
            <td colspan='2'><input name="submit" type="submit"
                                   value="submit" />
            </td>
        </tr>

    </table>
    <h1>Calendar : ${result}</h1>
</form>
</body>
</html>